package com.hxb.shirodemo.mapper;

import com.hxb.shirodemo.domain.User;
import com.hxb.shirodemo.domain.UserPerm;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    User findByName(String name);

    User findById(Integer id);

    List<UserPerm> FindPerms(int userId);
}
